home *** CD-ROM | disk | FTP | other *** search
- /*************************************************************************************
- #
- # Encoder.h
- #
- # The guts of the text encoder sample. This reads a text file, attempts to determine
- # the encoding, and then converts it to a different encoding.
- #
- # Author: Timothy Carroll
- # Apple Developer Technical Support
- # timc@apple.com
- #
- # Revision: Jason Yeo
- #
- # Modification History:
- #
- # 2/9/97 TMC Initial Release
- #
- # 9/12/97 JY Updated for:
- # TEC 1.2.1
- # Universal Interfaces 3.0
- # CodeWarrior 11 projects
- #
- # Copyright © 1997 Apple Computer, Inc., All Rights Reserved
- #
- #
- # You may incorporate this sample code into your applications without
- # restriction, though the sample code has been provided "AS IS" and the
- # responsibility for its operation is 100% yours. However, what you are
- # not permitted to do is to redistribute the source as "DSC Sample Code"
- # after having made changes. If you're going to re-distribute the source,
- # we require that you make it clear in the source that the code was
- # descended from Apple Sample Code, but that you've made changes.
- #
- *************************************************************************************/
-
- #ifndef __ENCODER__
- #define __ENCODER__
-
- #pragma once
-
- #include "Shell.h"
-
- // These define the parameters for our sniffer
- enum
- {
- kMaxErrors = 10,
- kMaxFeatures = 100
- };
-
- OSStatus EncodeFile (FSSpec *theFile);
-
-
- #endif // __ENCODER__